/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javaclass.ProductCategory;
import javaclass.ProductType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 *
 * @author Vincent
 */
@Entity
public class BillOfMaterial implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private ProductCategory barCategory;
    private ProductType barType;
    private Double amountRequired;
    
    @OneToOne
    private Ingredient ingredient;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Double getAmountRequired() {
        return amountRequired;
    }

    public void setAmountRequired(Double amountRequired) {
        this.amountRequired = amountRequired;
    }

    public ProductCategory getBarCategory() {
        return barCategory;
    }

    public void setBarCategory(ProductCategory barCategory) {
        this.barCategory = barCategory;
    }

    public ProductType getBarType() {
        return barType;
    }

    public void setBarType(ProductType barType) {
        this.barType = barType;
    }

    public Ingredient getIngredient() {
        return ingredient;
    }

    public void setIngredient(Ingredient ingredient) {
        this.ingredient = ingredient;
    }
    
}
